SSIS Expression question

You could setup a project data source and project parameters for this instead. Using a project parameter you can then define your path to either PROD or QA.

Deploy to integration services catalog - setup separate environments with defined values for each path - then configure the package to use the appropriate environment variables.

Much easier to manage an maintain than trying to change folder locations based on what data source you have defined.