I figured out the issue, my site had the following in wp-config.php. Also WP-config.php had to be placed at the site root
define('FS_CHMOD_DIR', true );
define('FS_CHMOD_FILE', true );
define('FS_METHOD', 'direct');
Removing the above resolved the issue.